package com.tansun.easycare.rule.decisiontree.service;

import java.util.List;
import java.util.Map;

import com.tansun.easycare.rule.common.model.RuleSetParamInfo;
import com.tansun.easycare.rule.common.service.RuleBaseService;
import com.tansun.easycare.rule.datamodel.entity.RuleDataparams;
import com.tansun.easycare.rule.decisiontree.entity.DecisionTreeEntity;
import com.tansun.easycare.rule.decisiontree.entity.RuleTreeNode;
import com.tansun.easycare.rule.decisiontree.model.RuleTreeManageVO;
import com.tansun.easycare.rule.exception.BizException;
import com.tansun.easycare.rule.rulemange.entity.RuleManage;

public interface DecisionTreeService extends RuleBaseService<RuleTreeNode> {

    /**
     * 根据决策树信息保存规则管理信息
     *
     * @param tree 决策树VO
     */
    void saveOrUpdateDecisionTree(RuleManage tree) throws BizException;


    /**
     * 根据树ID 和版本号构建树
     *
     * @param treeId  树ID
     * @param version 版本号
     */
    RuleTreeManageVO getTreeInfo(String treeId, String version,String projectCode, String temp) throws BizException;


    /**
     * 保存决策树及节点信息
     */
    void saveOrUpdate(DecisionTreeEntity treeEntity) throws BizException;
    
    /**
     * 显示java代码
     */
    public String showJavaCode(DecisionTreeEntity treeEntity) throws BizException;
    
    
    public List<RuleDataparams> findFunctionParam(Map<String, String> map);


	
}
